﻿@{
    ViewBag.Title = "Evaluacion";
}

<div class="col-md-12">
            
            <h3 class="panel-title">Registrar Prestamo</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    <form action="/prestamos/registrar" class="form-horizontal" method="post">
                        <div class="row">
                            <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-1">DNI</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control input-sm">
                                </div>
                                <button type="submit" class="btn btn-default btn-sm">Buscar</button>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-3">Total de ahorros</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control input-sm">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <div class="col-md-12">
                                    <h4>Oscar Geny Saavedra Guarniz</h4>
                                </div>
                                
                            </div>
                        </div>
                        </div>
                        
                            
                        <div class="row col-md-12">
                            <div class="col-md-6">
                                <fieldset>
                                    <legend>Avalados con deudas</legend>
                                    <table class="table table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>Nombre</th>
                                                <th>Monto</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            @foreach (var item in Model)
                                            { 
                                                <tr>
                                                    <td>@item.Id</td>
                                                    <td>@item.Avalado.Nombres</td>
                                                    <td>@item.MontoTotal</td>
                                                </tr>
                                            }
                                        </tbody>
                                    </table>

                                </fieldset>
                            </div>
                            <div class="col-md-6">
                                <fieldset>
                                    <legend>Prestamos Pendiente</legend>
                                    <table class="table table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>Fecha de Registro</th>
                                                <th>Nro Cuotas</th>
                                                <th>Monto</th>
                                                <th>Periodo de pago</th>
                                                <th>Avalado</th>
                                                <th>Socio</th>
                                                <th>Tasa de interes</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            @foreach (var item in Model)
                                            { 
                                                <tr>
                                                    <td>@item.Id</td>
                                                    <td>@item.FechRegistro.ToShortDateString()</td>
                                                    <td>@item.NroCuotas</td>
                                                    <td>@item.MontoTotal</td>
                                                    <td>@item.PeriodoPago</td>
                                                    <td>@item.Avalado.Nombres</td>
                                                    <td>@item.Socio.Nombres</td>
                                                    <td>@item.TasaInteres.Interes</td>
                                                </tr>
                                            }
                                        </tbody>
                                    </table>

                                </fieldset>
                            </div>
                            
                        </div>
                        
                    </form>

                </div>
            </div>
        </div>
